package com.mightybird.designpattern.structural.facade.subsystem;

public class CipherMachine {
    public String encrypt(String plainText) {
        System.out.print("encrypt " + plainText + " to ");
        byte[] bytes = plainText.getBytes();
        StringBuilder stringBuilder = new StringBuilder();
        for (byte aByte : bytes) {
            stringBuilder.append(aByte % 7);
        }
        String encryptedText = stringBuilder.toString();
        System.out.println(encryptedText);
        return encryptedText;
    }
}
